package adapter.impl;

import adapter.NewInterface;

/**
 * 适配器模式
 * @author zhangxi
 * @date 2021/10/8
 */
public class AdapterPatterDemo {
    public static void main(String[] args) {
        NewInterface oldInterfaceByAdapter= new AdapterImpl(new OldInterfaceImpl());
        NewInterface newInterface= new NewInterfaceImpl();
        oldInterfaceByAdapter.newExcute();
        newInterface.newExcute();
    }
}
